package com.rent.writeoff.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rent.writeoff.entity.BankReceipt;
import com.rent.writeoff.mapper.BankReceiptMapper;
import com.rent.writeoff.service.BankReceiptService;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class BankReceiptServiceImpl extends ServiceImpl<BankReceiptMapper, BankReceipt> implements BankReceiptService {

    @Override
    public List<BankReceipt> getUnusedByAccountForUpdate(String accountName) {
        return baseMapper.selectUnusedByAccountForUpdate(accountName);
    }

    @Override
    public List<String> getDistinctUnusedAccounts() {
        return baseMapper.selectDistinctUnusedAccounts();
    }
}
